<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
   <%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>登录首页</title>
<LINK 
href="images/public.css" type=text/css rel=stylesheet>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<DIV id=div2 style="position: absolute;width: 800px;height: 500px;left: 550px;top: 100px;">
<h1>健身房管理系统</h1>
</DIV>
<DIV id=div1 style="position: absolute;width: 800px;height: 500px;left: 300px;top: 200px;">
<s:form name="f1" action="login" method="post" enctype="multipart/form-data" 
		onsubmit="return check()">
		<table align="center">
		<tr><td>用户名:</td><td><input type="text" name="account">
		<font color="red">*</font></td></tr>
		<tr><td>密　码：</td><td><input type="password" name="password">
		<font color="red">*</font></td></tr>
		<tr><td>登录选择:</td><td>
 		<input type="radio" name="select" value="2" />教练
    	<input type="radio" name="select" value="1" />管理员
    	<input type="radio" name="select" value="0" checked="checked"/>普通用户
		<font color="red">*</font></td></tr>
		<tr><td><input type="submit" value="登录" class="btn btn-info"/></td>
		<td><input type="button" value="用户注册" class="btn btn-info"
				onclick="location.href ='login_client.jsp';" /></td></tr>
		</table>
	</s:form>
</DIV>
<script type="text/javascript">
		function check(){
		var account = document.f1.account;
		var password = document.f1.password;
		var select = document.f1.select;
		if(account.value==""||password.value==""||select.value==""){
			alert("必填项不能为空！");
			return false;
		}
		else{
			return true;
		}
	}
    </script>
</body>
</html>